/<template>
    <div class="index">
      <header>
        <My_header/>
      </header>
      <main>
        <router-view/>
      </main>
      <footer>
        <My_footer :mainRouter ="mainRouter"/>
      </footer>
    </div>
</template>

<script>
import My_footer from "@/components/My_footer.vue"
import My_header from "@/components/My_header.vue"
import {mainRouter} from "@/router/index"
export default {
  name: "index",
  components: {
    My_footer,
    My_header
  },
  data() {
    return {
      mainRouter
    }
  }
}
</script>

<style lang="scss" scoped>
.index{
  display: flex;
  flex-direction: column;
  header{
    width: 100%;
    height: 50px;
  }
  main{
    flex: 1;
  }
  footer{
    width: 100%;
    height: 50px;
  }
}
</style>